package com.niiwoo.civet.trade.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 
 * @author liaojunjun
 *
 */
@AllArgsConstructor
@Getter
public enum RefundOrderAccountingStatusEnum {
    INIT((byte)1,"初始化"),
    HANDLING((byte)1,"处理中"),
    SUCCESS((byte)2,"成功");

    private Byte value;
    private String desc;

    public static RefundOrderAccountingStatusEnum enumOf(Byte value) {
        for (RefundOrderAccountingStatusEnum retEnum : values()) {
            if (retEnum.value.equals(value)) {
                return retEnum;
            }
        }
        throw new NoSuchEnumValueException("RefundOrderAccountingStatusEnum:" + value);
    }
}
